import useScreen from '@/hooks/useScreen'
import React, { useEffect, useState } from 'react'

export default function ScreenCom() {
  //获取屏幕的类型
  let type = useScreen();

  return (
    <div>
      <h2>当前屏幕为 {type}</h2>
    </div>
  )
}
